package com.example.shopdemo.service;

import com.example.shopdemo.entity.Area;
import com.example.shopdemo.repository.AreaRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：Anitaxiaofeng
 * @description：
 * @create 2018-01-19
 **/
@Service
public class AreaServiceImpl {
    @Autowired
    private AreaRepository areaRepository;

    public List<Area> getAreaList(){
        return areaRepository.findAll();
    }
}
